home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / hsc / source / hsclib / include.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-02  |  2.3 KB  |  56 lines

  1. /*
  2.  * This source code is part of hsc, a html-preprocessor,
  3.  * Copyright (C) 1995-1997  Thomas Aglassinger
  4.  *
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; either version 2 of the License, or
  8.  * (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  */
  20. /*
  21.  * hsclib/include.h
  22.  */
  23.  
  24. #ifndef HSCLIB_INCLUDE_H
  25. #define HSCLIB_INCLUDE_H
  26.  
  27. /*
  28.  * flags for include_hsc_xxx()
  29.  */
  30. #define IH_PARSE_END    (1<<0)  /* check for unclosed tags & co at end */
  31. #define IH_PARSE_PRE    (1<<1)  /* parse with replacing "><&" */
  32. #define IH_PARSE_MACRO  (1<<2)  /* include macro */
  33. #define IH_PARSE_HSC    (1<<3)  /* include text of a special
  34.                                  *   hsc-command (eg $insert time) */
  35. #define IH_PARSE_SOURCE (1<<4)  /* include source (replace special chars) */
  36. #define IH_NO_STATUS    (1<<5)  /* oppress status message */
  37. #define IH_UPDATE_PRJ   (1<<6)  /* update project file */
  38. #define IH_POS_PARENT   (1<<7)  /* use position of next file on stack
  39.                                  *   for messages */
  40. #define IH_IS_INCLUDE   (1<<8)  /* included vai <$include>
  41.                                  *   (should be stored in project-file */
  42. #define IH_IS_SOURCE    (1<<9)  /* this is the main source-file
  43.                                  *   (should be stored in project-file */
  44.  
  45. #ifndef NOEXTERN_HSCLIB_INCLUDE_H
  46.  
  47. extern BOOL hsc_include_file(HSCPRC * hp, STRPTR filename, ULONG optn);
  48. extern BOOL hsc_include_string(HSCPRC * hp, STRPTR filename, STRPTR s, ULONG optn);
  49. extern BOOL hsc_base_include_file(HSCPRC * hp, STRPTR filename, ULONG optn, INFILEPOS * base_pos);
  50. extern BOOL hsc_base_include_string(HSCPRC * hp, STRPTR filename, STRPTR s, ULONG optn, INFILEPOS * base_pos);
  51.  
  52. #endif /* NOEXTERN_HSCLIB_INCLUDE_H */
  53.  
  54. #endif /* HSCLIB_INCLUDE_H */
  55.  
  56.